package com.kira.scaffoldmvc.Dubbo;

import jakarta.annotation.PostConstruct;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Slf4j
@ConfigurationProperties(prefix = "switch")
@Data
public class SwitchConfig {

    @PostConstruct
    private void init(){
        log.info("MongoDB透传开启:"+ open);
    }

    private boolean open;

}
